<?php

namespace slinks\extensions\onecms\core\model;

class MenuItemSeparator implements IMenuNode {

    /**
     * @throws BadMethodCallException if called. Medthod not supported for Separators.
     */
    public function addChild(IMenuNode $child) {
        throw new \BadMethodCallException('You cannot add a child to a MenuItemSeparator');
    }

    /**
     * @return Boolean true if the node has children.
     */
    public function hasChildren() {
        return false;
    }

    /**
     * @return array the children of this node.
     */
    public function getChildren() {
        return array();
    }

}